<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>form输入</title>
		<style>
		/* label+input{
			 color: red;
			 border: 4px solid red;
		 } */
		 p label~input{
		 			 color: springgreen;
		 }
		 label~input{
		 			 color: red;
		 			 border: 4px solid red;
		 }
		 #userNameInfor input{
			 color: darkmagenta;
		 }
		
		</style>
	</head>
	<body>
		<form>
			<p id="userNameInfor">
				<label for="uname">姓名</label><input type="text" name="uname" placeholder="姓名">
			</p>
			<p>
				<label for="p">来自</label><input type="text" name="province" placeholder="省">省<input type="text" placeholder="城市" name="City"/><input type="text" name="street" placeholder="街道"/>
			</p>
		</form>
	</body>
</html>
